package com.interceptor;


import net.bytebuddy.asm.Advice;

public class RewriteAdvice {

    @Advice.OnMethodExit
    static void onExit(@Advice.Return(readOnly = false) String returned) {
        // readOnly = false 允许我们把返回值改掉
        returned = "改了toString的返回值";
    }
}